<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.101.0">
    <title>Content Management System</title>

    <link href="/assets/dist/css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body class="text-center">
    <%c include_sub("home/header",obj); %>
     <h3><a href="/cms/list">返回列表 Return content list</a> 内容编辑 Content edit</h3>
     
 

    <div class="container text-center">
      <div class="row">
        <div class="col-3"></div>  
        <div class="col-6">
          <h2 id="horizontal-form"><%c echo<<obj["title"].as_string(); %></h2>
          <form action="/cms/editpost?id=<%c echo<<obj["aid"].to_string(); %>" method="post">

    <div class="mb-3">
      <label for="title" class="form-label">内容标题 Title</label>
      <input type="text" class="form-control" id="title" name="title" placeholder="标题 title" value="<%c echo<<obj["title"].as_string(); %>">
    </div>
    <div class="mb-3">
      <label for="content" class="form-label">内容 Content</label>
      <textarea class="form-control" id="content" name="content"  rows="20"><%c echo<<obj["content"].as_string(); %></textarea>
    </div>
    <input type="hidden" id="aid" name="aid"  value="<%c echo<<obj["aid"].to_string(); %>">
    <button type="submit" class="btn btn-primary">提交(Submit)</button>
  </form>

</div>

</div>
</div>

  </body>
  </html>